package cn.yunhe.model;

import java.io.Serializable;

public class Product implements Serializable {
    private int id;
    private String pname;
    private double price;
    private int amount;
    private String detail;
    private String pic;

    public Product() {
    }

    public Product(String pname, double price, int amount, String detail, String pic) {
        this.pname = pname;
        this.price = price;
        this.amount = amount;
        this.detail = detail;
        this.pic = pic;
    }

    public Product(int id, String pname, double price, int amount, String detail, String pic) {
        this.id = id;
        this.pname = pname;
        this.price = price;
        this.amount = amount;
        this.detail = detail;
        this.pic = pic;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }
}
